<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<div class="form-group">
								<label class="col-sm-3 control-label">姓名:</label>
								<div class="col-sm-8">
									<input id="name" name="name" class="form-control" type="text" value="钟兴恩">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">手机号码:</label>
								<div class="col-sm-8">
									<input id="cell_phone_num" name="cell_phone_num" class="form-control" type="text"  value="15288686666">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">身份证号码:</label>
								<div class="col-sm-8">
									<input id="id_card_num" name="id_card_num" class="form-control" type="text"  value="350128198401132919">
								</div>
							</div>
							<div class="form-group">
								<!--<div class="col-sm-8" id="qrcode"> </div>-->
								<label class="col-sm-3 control-label" id="ecode">二维码:</label>
								<img id="QrCode" src="" />
							</div>
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="button" class="btn btn-primary" onclick="formSubmit();">获取二维码</button>
								</div>
							</div>

						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript">
        $().ready(function() {
            $("#ecode").hide();
        });
		function formSubmit() {
            $.ajax({
                cache : true,
                type : "GET",
                url : "/system/loanUser/getAlipayData",
                data : $('#signupForm').serialize(),
                async : false,
                error : function(request) {
                    parent.layer.alert("Connection error");
                },
                success : function(data) {
                    $("#ecode").show();
                    document.getElementById("QrCode").src = data.content;
                }
            });
        }

	</script>
</body>
</html>
